import Vue from 'vue'
import Router from 'vue-router'
import Home from '../pages/home/home.vue'
import Member from '../pages/member/member.vue'
import Shopcar from '../pages/shopcar/shopcar.vue'
import Search from '../pages/search/search.vue'
import Newslist from '../pages/newslist/newslist.vue'
import NewsInfo from '../pages/newsInfo/newsInfo.vue'
import PhotoList from '../pages/photolist/photolist.vue'
import PhotoInfo from '../pages/photoinfo/photoinfo.vue'
import GoodsList from '../pages/goodslist/goodslist.vue'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Home',
            component: Home
        },
        {
            path: '/home',
            name: 'Home',
            component: Home
        }
        ,{
            path: '/member',
            name: 'Member',
            component: Member
        }, {
            path: '/shopcar',
            name: 'Shopcar',
            component: Shopcar
        }, {
            path: '/search',
            name: 'Search',
            component: Search
        }, {
            path: '/home/newslist',
            name: Newslist.name,
            component: Newslist
        },{
            path: '/home/newslist/newsinfo/:id',
            name: NewsInfo.name,
            component: NewsInfo
        },{
            path: '/home/photolist',
            name: 'photolist',
            component: PhotoList
        },{
            path: '/home/photolist/photoinfo/:id',
            name: 'photoinfo',
            component: PhotoInfo
        },{
            path: '/home/goodslist',
            name: 'goodslist',
            component: GoodsList
        }

    ],
    linkActiveClass: 'mui-active'
})
